package com.hpu.tools;

import android.app.Activity;
import android.content.Context;
import android.view.inputmethod.InputMethodManager;

public class InputMethodTools {

	public static void close(Activity context){
		InputMethodManager imm=(InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
		imm.hideSoftInputFromWindow(context.getWindow().getDecorView().getWindowToken(), 0);
	}
}
